package cn.edu.scau.service;

import cn.edu.scau.entity.Nurse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NurseService {
    /**
     * 查询所有
     * @return
     */
    List<Nurse> selectAll();
    /**
     * 按护士id查找护士信息
     * @param nurseid
     * @return
     */
    Nurse selectByPrimaryKey(Integer nurseid);

    /**
     * 根据护士编号,用户编号,护士姓名模糊查询
     * @param nurseid
     * @param userid
     * @param nursename
     * @return
     */
    List<Nurse> findByIdUseidName(Integer nurseid,Integer userid,String nursename);

    /**
     * 按用户id查找护士信息
     * @param userid
     * @return
     */
    Nurse selectByUserId(Integer userid);
    /**
     * 根据用户ID修改用户信息
     * @param record
     * @return
     */
    boolean updateByPrimaryKey(Nurse record);
    /**
     * 插入新用户信息
     * @param record
     * @return
     */
    boolean insert(Nurse record);

    /**
     * 按护士id删除信息
     * @param nurseid
     * @return
     */
    boolean deleteByPrimaryKey(Integer nurseid);

    /**
     * 按护士id修改信息
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(Nurse record);
}
